import pygame

def draw_game_screen(screen,world):
  screen_area = screen.get_rect()
  
  screen_area.center = world.player.rect.center
  
  screen_area.clamp_ip(world.area)
  
  screen.fill((0,140,210))
  
  image,blit_rect = world.player.get_blit_info()
  
  blit_rect.left -= screen_area.left
  blit_rect.top  -= screen_area.top
  
  screen.blit(image,blit_rect.topleft)
  
  for block in world.terrain['Solid']:
    image,blit_rect = block.get_blit_info()
    
    if blit_rect.colliderect(screen_area):
      blit_rect.left -= screen_area.left
      blit_rect.top  -= screen_area.top
      
      screen.blit(image,blit_rect.topleft)
  
